import { CustomEnum } from "@/enums";
import { HOUSE_STATUS } from "@/enums/house/house-const";

// 发布状态枚举
export const PUBLISH_STATUS_ENUM: CustomEnum<number> = {
  UNPUBLISHED: {
    value: 0,
    label: "未发布",
  },
  PUBLISHED: {
    value: 1,
    label: "已发布",
  },
  WITHDRAWN: {
    value: -1,
    label: "已撤回",
  },
};


export const TARGET_TYPE_ENUM: CustomEnum<number> = {
  ALL: {
    value: 0,
    label: "平台/商户/小程序三端所有用户",
  },
  PLATFORM: {
    value: 1,
    label: "平台端所有用户",
  },
  MERCHANT: {
    value: 2,
    label: "商户端所有用户",
  },
  MINI_PROGRAM: {
    value: 3,
    label: "小程序所有用户",
  },
  CUSTOM: {
    value: 4,
    label: "自定义用户",
  },
};

// 定义消息类型枚举
export const MESSAGE_TYPE_ENUM: CustomEnum<number> = {
  SYSTEM: {
    value: 1,
    label: "系统消息",
  },
  PRODUCT: {
    value: 2,
    label: "产品消息",
  },
  FINANCE: {
    value: 3,
    label: "财务消息",
  },
  ACTIVITY: {
    value: 4,
    label: "活动消息",
  },
  SECURITY: {
    value: 5,
    label: "安全消息",
  },
};

// 定义紧急程度枚举
export const MESSAGE_LEVEL_ENUM: CustomEnum<number> = {
  URGENT: {
    value: 1,
    label: "紧急提醒",
  },
  IMPORTANT: {
    value: 2,
    label: "重要通知",
  },
  NORMAL: {
    value: 3,
    label: "一般消息",
  },
};

export const MESSAGE_LEVEL_ENUM_MAP = {
  [MESSAGE_LEVEL_ENUM.NORMAL.value]: "success",
  [MESSAGE_LEVEL_ENUM.IMPORTANT.value]: "warning",
  [MESSAGE_LEVEL_ENUM.URGENT.value]: "danger",
};

// 定义标记类型枚举
export const MARK_TYPE_ENUM: CustomEnum<number> = {
  ALL_READ: {
    value: 1,
    label: "全部已读",
  },
  SINGLE_READ: {
    value: 2,
    label: "单条已读",
  },
};

// 是否已读枚举
export const IS_READ_ENUM: CustomEnum<number> = {
  UNREAD: {
    value: 0,
    label: "未读",
  },
  READ: {
    value: 1,
    label: "已读",
  },
};
